<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>Domall购物车</title>

    <link rel="stylesheet" href="/templates/index/vendors/font-awesome/4.5.0/css/font-awesome.min.css">
    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/??sm.min.css,sm-extend.min.css">
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/??sm.min.js,sm-extend.min.js' charset='utf-8'></script>

</head>
<body>
<div class="page-group">
    <div class="page page-current">
        <header class="bar bar-nav">
            <a href="javascript:history.back(-1);" class="icon icon-left pull-left"></a>
            <h1 class="title">Domall购物车</h1>
        </header>
        <div class="list-block media-list">
            <ul>
                {foreach $cart_list as $cart_info}
                <li>
                    <label class="label-checkbox item-content" id="check_cart">
                        <input type="checkbox" name="checkbox" id="{$cart_info.goods_id}">
                        <div class="item-media">
                            <i class="icon icon-form-checkbox"></i>
                            <img src="http://gqianniu.alicdn.com/bao/uploaded/i4//tfscom/i3/TB10LfcHFXXXXXKXpXXXXXXXXXX_!!0-item_pic.jpg_250x250q60.jpg" width="80">
                        </div>
                        <div class="item-inner">
                            <div class="item-title-row">
                                <div class="item-title">{$cart_info.goods_name}</div>
                                <div class="item-after">
                                    数量X{$cart_info.goods_num}<br>
                                    ￥{$cart_info.goods_price}<br>
                                    <div class="content-padded docs-icons">
                                    <span class="icon icon-remove"></span>
                                    </div>
                                </div>
                            </div>
                            <!--<div class="item-subtitle">标题</div>-->
                            <!--<div class="item-text">{$cart_info.goods_name}</div>-->
                        </div>
                    </label>
                </li>
                {/foreach}
            </ul>
        </div>
        <nav class="bar bar-tab">
            <a class="tab-item external active" href="#">
            <label class="label-checkbox item-content">
                <input type="checkbox" name="checkbox" id="checkCartAll">
                <div class="item-media">
                    <i class="icon icon-form-checkbox"></i>
                </div>
            </label>
            </a>
            <a class="tab-item external" href="#">
                总价：￥{$cart_info.goods_price}
            </a>
            <a class="tab-item external" href="/index/order">
                <button class="button button-fill button-danger">
                    结算(1)
                </button>

            </a>
        </nav>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        $('#checkCartAll').click(function(){
            $('#check_cart').find("input[type=checkbox]").click()
        });
        $('#checkCartAll').click();
    });
</script>
</body>
</html>